#include "stdafx.h"
#include "analysis_sbox.h"

void analysis_sbox( unsigned char &in_analysbox , unsigned char &out_analysbox )  //
{
	const unsigned char sbox[16] = { 
		0x0c , 0x05 , 0x06 , 0x0b , 
		0x09 , 0x00 , 0x0a , 0x0d ,
		0x03 , 0x0e , 0x0f , 0x08 ,
		0x04 , 0x07 , 0x01 , 0x02  } ;
	out_analysbox = sbox[in_analysbox] ;
}
unsigned char analysis_sbox( unsigned char in_analysbox )  //
{
	static const unsigned char sbox[16] = { 
		0x0c , 0x05 , 0x06 , 0x0b , 
		0x09 , 0x00 , 0x0a , 0x0d ,
		0x03 , 0x0e , 0x0f , 0x08 ,
		0x04 , 0x07 , 0x01 , 0x02  } ;
		return  sbox[in_analysbox] ;
}